﻿<Window x:Class="MPExtractor.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MPExtractor" Height="396" Width="643"  Drop="Window_Drop" AllowDrop="True">
    <Grid>
        <ListBox x:Name="ListFiles" Margin="10,10,10,38">
            <ListBox.ContextMenu>
                <ContextMenu StaysOpen="true" Background="WhiteSmoke">
                    <ContextMenu.BitmapEffect>
                        <BitmapEffectGroup/>
                    </ContextMenu.BitmapEffect>
                    <MenuItem Header="Remove" Name="Remove" Click="Remove_Click">
                        <MenuItem.Icon>
                            <Image Source="delete-icon.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                </ContextMenu>
            </ListBox.ContextMenu>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid Margin="0,2">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{Binding Path}" />
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>

        </ListBox>


        <TextBox x:Name="extractpath" TextWrapping="Wrap" UseLayoutRounding="False" Margin="10,0,229,10" Height="23" VerticalAlignment="Bottom"/>
        <Button Content="Extract" HorizontalAlignment="Right" Width="75" Click="Button_Click" Margin="0,0,10,10" Height="23" VerticalAlignment="Bottom"/>
        <Button Content="Browse" HorizontalAlignment="Right" Margin="0,0,149,10" Width="75" Click="Button_Click_1" Height="23" VerticalAlignment="Bottom"/>


    </Grid>
</Window>
